﻿using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ABPIdentityDemo.Services
{
    [Authorize("WeatherPermission")]
    public class WeatherAppService : ApplicationService, IWeatherAppService
    {
        [Authorize("Weather_Get01")]
        public string GetMyAbpAction01()
        {
            return "GetMyAbpAction 01 ....";
        }

        [Authorize("Weather_Get02")]
        public string GetMyAbpAction02(string name)
        {
            return $"GetMyAbpAction 02 ...{name}";
        }
    }
}
